package com.muyu.vehicle.service.impl;

import java.math.BigDecimal;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.vehicle.mapper.VehicleDataInfoMapper;
import com.muyu.vehicle.domain.VehicleDataInfo;
import com.muyu.vehicle.service.IVehicleDataInfoService;

/**
 * 车辆数据大屏Service业务层处理
 *
 * @author muyu
 * @date 2021-09-04
 */
@Service
public class VehicleDataInfoServiceImpl implements IVehicleDataInfoService
{
    @Autowired
    private VehicleDataInfoMapper vehicleDataInfoMapper;

    /**
     * 查询车辆数据大屏
     *
     * @param sumMileage 车辆数据大屏主键
     * @return 车辆数据大屏
     */
    @Override
    public VehicleDataInfo selectVehicleDataInfoBySumMileage(BigDecimal sumMileage)
    {
        return vehicleDataInfoMapper.selectVehicleDataInfoBySumMileage(sumMileage);
    }

    /**
     * 查询车辆数据大屏列表
     *
     * @param vehicleDataInfo 车辆数据大屏
     * @return 车辆数据大屏
     */
    @Override
    public List<VehicleDataInfo> selectVehicleDataInfoList(VehicleDataInfo vehicleDataInfo)
    {
        return vehicleDataInfoMapper.selectVehicleDataInfoList(vehicleDataInfo);
    }

    /**
     * 新增车辆数据大屏
     *
     * @param vehicleDataInfo 车辆数据大屏
     * @return 结果
     */
    @Override
    public int insertVehicleDataInfo(VehicleDataInfo vehicleDataInfo)
    {
        return vehicleDataInfoMapper.insertVehicleDataInfo(vehicleDataInfo);
    }

    /**
     * 修改车辆数据大屏
     *
     * @param vehicleDataInfo 车辆数据大屏
     * @return 结果
     */
    @Override
    public int updateVehicleDataInfo(VehicleDataInfo vehicleDataInfo)
    {
        return vehicleDataInfoMapper.updateVehicleDataInfo(vehicleDataInfo);
    }

    /**
     * 批量删除车辆数据大屏
     *
     * @param sumMileages 需要删除的车辆数据大屏主键
     * @return 结果
     */
    @Override
    public int deleteVehicleDataInfoBySumMileages(BigDecimal[] sumMileages)
    {
        return vehicleDataInfoMapper.deleteVehicleDataInfoBySumMileages(sumMileages);
    }

    /**
     * 删除车辆数据大屏信息
     *
     * @param sumMileage 车辆数据大屏主键
     * @return 结果
     */
    @Override
    public int deleteVehicleDataInfoBySumMileage(BigDecimal sumMileage)
    {
        return vehicleDataInfoMapper.deleteVehicleDataInfoBySumMileage(sumMileage);
    }
}
